import { exportFileRequest, getRequest, postRequest } from './api';

export const getDeptList = () => getRequest("/sysDept/getList");
export const getUserList = () => getRequest("/sysUser/getList");
export const changeEmpStatus = params => postRequest("/sysUser/update", params);
export const getSyncStatus = () => getRequest("/dingTalk/getSyncStatus");
export const syncDeptAndEmp = () => getRequest("/dingTalk/asyncDingTalkDeptAndEmployee");
export const getDeptTree = () => getRequest("/sysDept/getDeptTree");
export const getEmployeeList = params => postRequest("/sysDept/getDeptMemberPage", params);
export const resetEmpPwd = params => postRequest("/sysUser/resetEmpPwd", params);
export const exportAttend = params => exportFileRequest("/attend/downloadOvertimeAttend", params);